/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2022-08-05
 * Time: 8:06
 */
class People{
    public int age;
    public String name;

    public void eat(){

        System.out.println("吃饭");
    }
}

class Dog{
    public String name;
    public String color;
    public int age;

    public void barks(){
        System.out.println(name+"汪汪叫");
    }

    public void wag(){
        System.out.println(name+"摇尾巴");
    }

    public static void main(String[] args) {
        System.out.println("123");
    }
}
public class ClassTest {
    public static void main(String[] args) {
        //实例化一个狗的对象
        Dog dog = new Dog();
        dog.name = "大黄";
        dog.color = "彩色";
        dog.age = 5;
        System.out.println(dog.age);
        System.out.println(dog.color);

        Dog d = new Dog();
        d.name = "小白";
        d.wag();

        dog.wag();
        dog.barks();

    }

}
